<div class="menuRightSide">
    <?php
    // Crossroads
    html::crossroads('admin');
    
    $sessionData = SessionData::instance();
    $authUser = $sessionData->getAuthUser();
    echo '<div>' . html::anchor('/auth/logout', text::get('userSpace.menu-logout')) . '</div>';
    echo '<div>' . html::anchor('/admin/person/edit?id=' . $authUser['id'], $authUser['first_name'] . ' ' . $authUser['last_name'] . ' (' .  $authUser['login'] . ')') . '</div>';
    ?>
</div>

<div id="headerBlock" style="">
    <div class="menu">
        <div>
            <span><?php echo text::getEscaped('admin.menu-persons') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/person/all', text::get('person.form-title')) ?></li>
                <li><?php echo html::anchor('/admin/userSubstitution', text::get('admin.menu-userSubstitution')) ?></li>
                <li><?php echo html::anchor('/admin/person/personDuplicates', text::get('admin.menu-personDuplicates')) ?></li>
                <li><?php echo html::anchor('/admin/personTag/all', text::get('admin.menu-personTags')) ?></li>
            </ul>
        </div>
        <!--
        <div>
            <span><?php echo text::getEscaped('admin.menu-seminars') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/seminar/all', text::get('seminar.form-title')) ?></li>
                <li><?php echo html::anchor('admin/seminarWizard/', text::get('seminarWizard.form-title')) ?></li>
                <li><?php echo html::anchor('admin/organization/all', text::get('organization.form-title')) ?></li>
            </ul>
        </div>
        -->
        <div>
            <span><?php echo text::getEscaped('admin.menu-viSeminars') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/viSeminar/overview', text::get('viSeminar.form-title')) ?></li>
                <li><?php echo html::anchor('admin/viseminWizard/', text::get('viseminWizard.form-title')) ?></li>
                <li><?php echo html::anchor('admin/viRegistration/', text::get('viRegistration.form-title')) ?></li>
                <li><?php echo html::anchor('admin/viParticipant/', text::get('viParticipant.form-title')) ?></li>
            </ul>
        </div>
        <div>
            <span><?php echo text::getEscaped('admin-menu-exports') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/foreignPoliceExport/init', text::get('foreignPoliceExport-form-title'), array('title' => text::get('foreignPoliceExport-form-title-hint'))) ?></li>
            </ul>
        </div>
        <div>
            <span><?php echo text::getEscaped('admin.menu-tables') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/country/all', text::get('country.form-title')) ?></li>
                <li><?php echo html::anchor('admin/language/all', text::get('language.form-title')) ?></li>
                <li><?php echo html::anchor('admin/currency/all', text::get('currency.form-title')) ?></li>
                <li><?php echo html::anchor('admin/bankAccount/all', text::get('bankAccount.form-title')) ?></li>
                <li class="menuItemSeparator"><?php echo html::anchor('admin/programType/all', text::get('programType.form-title')) ?></li>
                <li><?php echo html::anchor('admin/karmayogaType/all', text::get('karmayogaType.form-title')) ?></li>
                <li><?php echo html::anchor('admin/accomodationType/all', text::get('accomodationType.form-title')) ?></li>
                <li><?php echo html::anchor('admin/seminarBatchType/all', text::get('seminarBatchType.form-title')) ?></li>
                <li><?php echo html::anchor('admin/exerciseGroup/all', text::get('exerciseGroup.form-title')) ?></li>
                <li><?php echo html::anchor('admin/building/all', text::get('building.form-title')) ?></li>
                <li><?php echo html::anchor('admin/room/all', text::get('room.form-title')) ?></li>
                <li class="menuItemSeparator"><?php echo html::anchor('admin/viAccomodationType/all', text::get('viAccomodationType.form-title')) ?></li>
                <li><?php echo html::anchor('admin/viSeminarTag/all', text::get('viSeminarTag.form-title')) ?></li>
            </ul>
        </div>
        <div>
            <span><?php echo text::getEscaped('admin.menu-info') ?></span>
            <ul>
                <li><?php echo html::anchor('admin/documentation/', text::get('admin.menu-info-help')) ?></li>
            </ul>
        </div>
    </div>
</div>